﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace WebSocketDemo.Models
{
    public class MsgTemplate
    {
        /// <summary>
        /// 发送人
        /// </summary>
        public string SenderID { get; set; }

        /// <summary>
        /// 接收人
        /// </summary>
        public string ReceiverID { get; set; }

        /// <summary>
        /// 确实是发送还是接收消息 Send or Receive
        /// </summary>
        public string MessageType { get; set; }

        /// <summary>
        /// 消息内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 聊天时间
        /// </summary>
        public string ChatTime { get; set; } = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");

        /// <summary>
        /// 是否未读消息
        /// </summary>
        public bool NotReadMsg { get; set; } = false;

    }
}
